package com.ycx.furns.dao.impl;

import com.ycx.furns.dao.BasicDAO;
import com.ycx.furns.dao.ManagerDAO;
import com.ycx.furns.entity.Manager;

public class ManagerDAOImpl extends BasicDAO<Manager> implements ManagerDAO {
    @Override
    public Manager getManagerByNameAndPwd(String name, String password) {
        String sql = "SELECT * FROM admin WHERE `name`= ? AND `password` = MD5(?)";
        return querySingle(sql, Manager.class, name, password);
    }
}
